package com.jd.org.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Employee {
       private Long id;
       private String username;
       private String phone;
       private String email;
       private String salt;
       private String password;
       private Integer age;
       private Integer state = 1;
       private Long department_id;
       private Long logininfo_id;
       // 店铺
       private Long shop_id;
       private Shop shop;
//      这个就是通过关联的所属部门id来查询对应部门
       private Department department;
       // 方便从中间表中为当前员工添加角色
       private Long role_id;




}
